﻿<%@ Page Language="C#" MasterPageFile="Town.master" AutoEventWireup="true" CodeFile="TownBasicAdd.aspx.cs"
    Inherits="TownshipEnterprise_TownBasicAdd" StylesheetTheme="Content" %>
    
   
<%@ Register Src="../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
    
    
      
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="height: 686px; width: 704px;">
        <ajaxToolkit:TabContainer ID="TabContainer3" runat="server" ActiveTabIndex="0" 
            AutoPostBack="True" Height="672px" Width="758px">
            <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="单位信息">
                <ContentTemplate>
                    <table style="height: 586px; width: 626px;">
                        <tr>
                            <td>
                                单位：
                            </td>
                            <td>
                                <asp:DropDownList ID="DptBig" runat="server" AutoPostBack="True" Width="160px" OnSelectedIndexChanged="DptBig_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:DropDownList ID="DptSmall" runat="server" AutoPostBack="True" Width="137px"
                                    Height="22px" DataTextField="shortname" DataValueField="DepartmentID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队伍分类
                            </td>
                            <td>
                                <asp:RadioButtonList ID="rblFBType" runat="server" CssClass="txtwidth" RepeatDirection="Horizontal"
                                    Width="299px" Height="16px">
                                    <asp:ListItem Selected="True">企事业专职消防队</asp:ListItem>
                                    <asp:ListItem>乡镇四有消防队</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队伍名称：
                            </td>
                            <td>
                                <asp:TextBox CssClass="txtwidth" ID="txtArmy" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtArmy"
                                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队站地址：
                            </td>
                            <td>
                                <asp:TextBox ID="txtAddress" runat="server" CssClass="txtwidth"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAddress"
                                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                责任区域：
                            </td>
                            <td>
                                <asp:TextBox ID="txtRange" runat="server" CssClass="txtwidth"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                单位主管领导姓名：
                            </td>
                            <td>
                                <asp:TextBox CssClass="txtwidth" ID="txtUnitLeadName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                单位主管领导电话：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUnitLeadTel" runat="server" CssClass="txtwidth" MaxLength="12"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtUnitLeadTel"
                                    Display="Dynamic" ErrorMessage="请输入数字" MaximumValue="99999999999" MinimumValue="999999"
                                    Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                单位主管领导照片：
                            </td>
                            <td>
                                <asp:FileUpload ID="fuDepartmentPhoto0" runat="server" Height="21px" Width="379px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队领导姓名：
                            </td>
                            <td>
                                <asp:TextBox CssClass="txtwidth" ID="txtArmyLeadName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队领导电话：
                            </td>
                            <td>
                                <asp:TextBox ID="txtArmyLeadTel" runat="server" CssClass="txtwidth" MaxLength="12"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtArmyLeadTel"
                                    Display="Dynamic" ErrorMessage="请输入数字" MaximumValue="99999999999" MinimumValue="999999"
                                    Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队领导照片：
                            </td>
                            <td>
                                <asp:FileUpload ID="fuDepartmentPhoto1" runat="server" Height="21px" Width="379px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                经度：
                            </td>
                            <td>
                                <asp:TextBox CssClass="txtwidth" ID="txtLongitude" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator8" runat="server" ErrorMessage="请输入数字" MaximumValue="999999"
                                    MinimumValue="-1000" ControlToValidate="txtLongitude" Display="Dynamic" Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                纬度：
                            </td>
                            <td>
                                <asp:TextBox CssClass="txtwidth" ID="txtLatitude" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator9" runat="server" ControlToValidate="txtLatitude"
                                    Display="Dynamic" ErrorMessage="请输入数字" Type="Double" MaximumValue="999999" MinimumValue="-1000"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队员数量：
                            </td>
                            <td>
                                <asp:TextBox CssClass="txtwidth" ID="txtMemberCount" runat="server" MaxLength="5"></asp:TextBox>
                                <asp:RangeValidator ID="RangeValidator11" runat="server" ControlToValidate="txtMemberCount"
                                    Display="Dynamic" ErrorMessage="请输入数字" MaximumValue="999" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                单位外观图：
                            </td>
                            <td>
                                <asp:FileUpload ID="fuDepartmentPhoto2" runat="server" Height="21px" 
                                    Width="379px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队站建筑面积：
                            </td>
                            <td>
                                <asp:TextBox ID="txtBuildArea" runat="server" CssClass="txtwidth" Height="20px" 
                                    Width="299px"></asp:TextBox>
                                平方米<asp:RangeValidator ID="RangeValidator13" runat="server" 
                                    ControlToValidate="txtBuildArea" Display="Dynamic" ErrorMessage="请输入数字" 
                                    MaximumValue="99999" MinimumValue="0" Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                队站占地面积：
                            </td>
                            <td>
                                <asp:TextBox ID="txtRealArea" runat="server" CssClass="txtwidth"></asp:TextBox>
                                平方米<asp:RangeValidator ID="RangeValidator12" runat="server" 
                                    ControlToValidate="txtRealArea" Display="Dynamic" ErrorMessage="请输入数字" 
                                    MaximumValue="99999" MinimumValue="0" Type="Double"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;
                            </td>
                            <td>
                                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="下一步" />
                                <asp:Label ID="Label1" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="营房库室" Visible="false">
                <ContentTemplate>
                    &nbsp;&nbsp;<table>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td style="width: 32px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                名称：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlPhotoName" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td style="width: 32px">
                                <asp:HiddenField ID="HiddenField1" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                图片：
                            </td>
                            <td colspan="3">
                                <asp:FileUpload ID="fuPhoto" runat="server" Height="23px" Width="320px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                图片描述：
                            </td>
                            <td colspan="3">
                                <asp:TextBox CssClass="txtwidth" ID="txtPhotoDetails" runat="server" TextMode="MultiLine"
                                    Width="320px" Height="76px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;
                            </td>
                            <td colspan="3">
                                <asp:Button ID="Button2" runat="server" CausesValidation="False" OnClick="btnUpLoad_Click"
                                    Text="上传" Width="80px" />
                                <asp:Label ID="Label2" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="3">
                                <asp:Button ID="Button3" runat="server" Text="添加设备" OnClick="btnDevices_Click" Width="80px" />
                                <asp:Button ID="Button4" runat="server" OnClick="btnVehicles_Click" Text="添加车辆" Width="80px" />
                            </td>
                        </tr>
                    </table>
                    <asp:DataList ID="DltList" RepeatColumns="4" runat="server" RepeatDirection="Horizontal">
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <div style="border: solid 1px #CCCCCC; padding: 3px; width: 160px; height: 120px;">
                                            <a target="_blank" href='<%# Eval("PicPath") %>'>
                                                <img src='<%# Eval("PicPath") %>' width="160px" height="120px" /></a>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <%# Eval("TownPicstypeID")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <%# Eval("PicDescript")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="btnEdit" runat="server" Visible="false" OnClientClick="return confirm('确定要修改此信息吗？')"
                                            ImageUrl="~/Images/Edit.gif" OnCommand="btnEdit_Command" CommandArgument='<%# Eval("id") %>'
                                            ToolTip="编辑" />&#160;&#160;&#160;
                                        <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/Delete.gif" OnCommand="btnDelete_Command"
                                            CommandArgument='<%# Eval("id") %>' OnClientClick="return confirm('确定要删除此图片吗？')"
                                            ToolTip="删除" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList><uc1:ListPageContral ID="ListPageContral2" PageSize="4" OnPageSizeChange="ListPageContral1_PageSizeChange"
                        runat="server" />
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
        
    </div>
</asp:Content>
